<template>
  <div>
    <el-table
      :data="tableData"
      style="width: 100%"
      stripe
      :default-sort = "{prop: 'date', order: 'descending'}"
    >
      <el-table-column
        prop="username"
        label="用户名"
        sortable
        width="180">
      </el-table-column>
      <el-table-column
        prop="role"
        label="角色"
        width="180">
      </el-table-column>
      <el-table-column
        prop="account"
        label="交易账户">
      </el-table-column>
      <el-table-column
        prop="state"
        label="状态">
      </el-table-column>
      <el-table-column
        prop="birthday"
        label="创建时间">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: 'Market',
  data () {
    return {
      tableData: [{
        username: 'admin',
        role: '超级交易员',
        account: '全部',
        state: '活跃',
        birthday: '2021-05-11 19:37:06'
      }, {
        username: 'gk',
        role: '交易员',
        account: '全部',
        state: '活跃',
        birthday: '2021-05-11 19:37:06'
      }, {
        username: 'ygw',
        role: '超级交易员',
        account: '全部',
        state: '活跃',
        birthday: '2021-05-11 19:37:06'
      }]
    }
  },
  methods: {
    formatter (row, column) {
      return row.address
    }
  }
}
</script>

<style scoped>

</style>
